package com.linkage.usercenter.dao;

import com.linkage.usercenter.pojo.entity.CoreMiddleOperateRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CoreMiddleOperateRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CoreMiddleOperateRole record);

    int insertSelective(CoreMiddleOperateRole record);

    CoreMiddleOperateRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CoreMiddleOperateRole record);

    int updateByPrimaryKey(CoreMiddleOperateRole record);

    void deleteByRoleCodes(List<String> roleCodeList);

    void deleteByRoleCode(String roleCode);

    List<CoreMiddleOperateRole> queryByRoleCode(String roleCode);

    List<Map<String,String>> queryOperCodeListByRoleCode(String roleCode);
}